package cn.gson.springboot.model.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.gson.springboot.model.mapper.RukuMapper;
import cn.gson.springboot.model.mapper.TuihuoMapper;

@Service
@Transactional(rollbackFor=Exception.class)
public class TuihuoService {
	@Autowired
	private TuihuoMapper tm;
	
	//查询所有药品
	public List<Map<String,Object>> cxsy() {
		List<Map<String,Object>> ll= tm.cxsy(); 
		return ll;
	}
	//查询所有药品
		public List<Map<String,Object>> ypsy(int a) {
			List<Map<String,Object>> ll= tm.ypsy(a); 
			return ll;
		}
}
